<template>
	<!-- 我的下部功能展示框 -->
	<view class="list" @tap='changeFunc'>
		<view class="list_icon">
			<image :src="imgSrc" mode=""></image>
		</view>
		<view class="list_text">
			{{ listName }}
		</view>
		<view class="list_arrow">
			<u-icon name="arrow-right"></u-icon>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		props: {
			listName: {
				type: String
			},
			imgSrc: {
				type: String
			}
		},
		methods: {
			changeFunc() {
				this.$emit("changeFunc")
			}
		}
	}
</script>

<style lang="scss">
	.list {
		padding: 22rpx;
		border-bottom: 2rpx solid #F5F5F5;
		display: flex;
		justify-content: space-between;
		align-items: center;

		.list_icon {
			margin-right: 20rpx;
			margin-top: 8rpx;

			image {
				width: 50rpx;
				height: 50rpx;
			}
		}

		.list_text {
			font-size: 28rpx;
			flex-grow:1;
		}

		.list_arrow {
			text-align: right;

		}
	}
</style>
